package inheritedPanel;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Toolkit;

import javax.swing.JLabel;
import javax.swing.JPanel;

public class TopMenuLogo extends JPanel{
	private static final long serialVersionUID = 1L;
	JLabel lblP = new JLabel("Pharmacy");
    JLabel lblG = new JLabel("Logo");
    JPanel p, g;
    Dimension size = Toolkit.getDefaultToolkit().getScreenSize();
    int x = size.width, y = size.height;
    
	public TopMenuLogo() {
		setLayout(new BorderLayout());
        setPreferredSize(new Dimension((int)(x * 0.25), 120));
        lblP.setFont(new Font("Broadway", 0, 35));
        lblP.setForeground(new Color(210, 71, 38));
        lblG.setFont(new Font("Segoe UI", 0, 30));
        lblG.setForeground(Color.WHITE);

        p = new JPanel();
        g = new JPanel();

        p.setBackground(new Color(83,83,83));	
        g.setBackground(new Color(83,83,83));	

        p.add(lblP);
        g.add(lblG);

        add(p, BorderLayout.NORTH);
        add(g, BorderLayout.CENTER);
	}
}
